package batch.execution;

import java.util.HashMap;
import java.util.Map;

import business.goodsreceipt.RunGrBSvc;
import business.order.RunOrderBSvc;


public class Launcher {
	public static void main(String[] args) {
		RunDefaultBSvc bsvc = getOrderBsvc();
		
		Map<String,String> paramMap = new HashMap<String,String>();
		for (String string : args) {
			String[] str = string.split("=");
			paramMap.put(str[0], str[1]);
		}
		bsvc.execute(paramMap);
	}

	private static RunDefaultBSvc getOrderBsvc() {
		return new RunOrderBSvc();
	}

	private static RunDefaultBSvc getGrBsvc() {
		return new RunGrBSvc();
	}
}
